<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="user" class="entity.User" scope="session"/>
<jsp:useBean id="message" class="java.lang.String" scope="request"/>

<html>
	<head>
		<title>Recreation Manager - Dodavanje Termina</title>
		<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
		<link rel="stylesheet" type="text/css" href="theme.css">
		<script type="text/javascript" src="scripts/linkfader.js"></script>
		<script type="text/javascript" src="scripts/formCheck.js"></script>
	</head>
	<c:if test="${user.type!='A'}">
		<c:redirect url="./main.jsp" />
	</c:if>
	<body>
		<center>
			<c:import url="./header.jsp"></c:import>
			<table class="mainTable">
				<tr>
					<td width="200px" valign="top">
						<c:import url="./menu.jsp"></c:import>
					</td>			
					<td valign="top">
					<!-- itt kezdodik -->
					<form action="./AddAppointment" name="formAddAppointment" method="post" 
						accept-charset="ISO-8859-1" onsubmit="return checkAppointment()">
						<table class = "userChangeTable">
							<tr>
								<td colspan = "2"><h2 align="center">Dodavanje termina</h2></td>
							</tr>
							<c:if test="${not empty message}">
							<tr>
								<td colspan = "2"><h4 align="center"><font color="red"><c:out value="${message}"></c:out></font></h4></td>
							</tr>
							</c:if>
							<tr>
								<td align="right">Lokacija:</td>
								<td><input type="text" name="location"></td>
							</tr>
							<tr>
								<td align="right">Datum (dd.MM.gggg):</td>
								<td><input type="text" name="date"></td>
							</tr>
							<tr>
								<td align="right">Od (SS:mm):</td>
								<td><input type="text" name="from"></td>
							</tr>
							<tr>
								<td align="right">Do (SS:mm):</td>
								<td><input type="text" name="to"></td>
							</tr>
							<tr>
								<td align="right">&nbsp;</td>
								<td><input type="submit" name="submit" value="Dodavanje" ></td>
							</tr>
						</table>
					</form>
					<!-- itt vegzodik -->
					</td>
				</tr>
			</table>	
	</center>
	</body>	
</html>